const request = require("../utils/request");
const path = "/api/v1/customer";
const PostUser = () => request("post", path + "/account/wx-auth");
const GetUser = () => request("get", path + "/account/info");
//维修类型
const RepairType = () => request("get", path + "/repair-type/tree");
//品牌型号
const tree = () => request("get", path + "/brand/tree");
//banner
const banner = () => request("get", path + "/banner/s");
//phone
const postphone = (data: any) =>
  request("post", path + "/account/wx-phone", data);
//avatar
const postavatar = (data: any) =>
  request("post", path + "/account/avatar", data);
//username
const postname = (data: any) =>
  request("post", path + "/account/username", data);

//优惠卷
const conpon = (data: any) => request("get", path + "/coupon/s", data);
//可用优惠卷
const kconpon = (data: any) => request("get", path + "/coupon/s/usable", data);
const entity = () => request("get", path + "/entity/pair");
export {
  PostUser,
  GetUser,
  RepairType,
  tree,
  banner,
  postphone,
  postavatar,
  postname,
  conpon,
  kconpon,
  entity,
};
